﻿<UserControl x:Class="Cinser.Common.Silverlight.Controls.SinglePictrueView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <TransformGroup x:Key="ImageTransformResource">
                <ScaleTransform />
                <TranslateTransform/>
            </TransformGroup>
        </Grid.Resources>
        <ScrollViewer Grid.Row="0"  Margin="0" HorizontalAlignment="Center" Name="scrollViewer1" VerticalAlignment="Center"  VerticalScrollBarVisibility="Hidden" Cursor="SizeNESW" >
            <ContentControl Margin="0" Name="contentControl1"  MouseLeftButtonDown="contentControl1_MouseLeftButtonDown" MouseLeftButtonUp="contentControl1_MouseLeftButtonUp" MouseMove="contentControl1_MouseMove" MouseWheel="contentControl1_MouseWheel" >
                <Image   Name="img" Stretch="Fill"  Source="/SilverlightApplicationWCF;component/0824wallpaper-6_1600.jpg" RenderTransform="{StaticResource ImageTransformResource}" />
            </ContentControl>
        </ScrollViewer>
    </Grid>
</UserControl>
